//
//  OrderMessageCell.m
//  PPDL
//
//  Created by 王洋 on 2019/8/6.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "OrderMessageCell.h"

@implementation OrderMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(OrderMessageModel *)model {
    
    self.itemOrderStatusLab.text = model.itemOrderStatus;
    [self.itemMainImage sd_setImageWithURL:[NSURL URLWithString:model.itemOrderImageUrl] placeholderImage:[UIImage imageNamed:@"placeholder_rect"] options:SDWebImageRetryFailed];
    
    self.itemMainTitle.text = model.itemOrderMainTitle;
    self.itemPrice.text = [NSString stringWithFormat:@"¥ %@",model.itemOrderPrice];
    self.itemTime.text = model.itemOrderTime;
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    [self.itemMainImage pp_clipCorners:UIRectCornerAllCorners radius:8];
}

@end
